/* login.css */
/* ==========================================================================
   重置和基础样式
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(40, 40, 40, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(40, 40, 40, 0.05) 0%, transparent 20%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   头部和导航样式
   ========================================================================== */

header {
    padding: 30px 0;
    border-bottom: 1px solid #333;
    position: relative;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-symbol {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    position: relative;
}

.infinity-symbol {
    position: absolute;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #3a3a3a;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(0, 255, 200, 0.2));
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
        stroke-width: 8;
    }

    50% {
        opacity: 1;
        stroke-width: 9;
    }
}

.site-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.2rem;
    color: #3a3a3a;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.1);
}

.site-subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   主内容区样式
   ========================================================================== */

.main-content {
    padding: 50px 0;
    min-height: 70vh;
    flex: 1;
    display: flex;
    align-items: center;
}

/* 终端样式 */
.terminal {
    background-color: #111;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 40px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to right, #111, #222, #111);
    border-bottom: 1px solid #333;
}

.terminal-header {
    color: #00ffc8;
    font-size: 0.9rem;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.terminal-header h2 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-right: 15px;
}

.security-level {
    color: #ff5555;
    font-size: 0.8rem;
    white-space: nowrap;
}

.terminal-line {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards;
}

.terminal-line:nth-child(1) {
    animation-delay: 0.1s;
}

.terminal-line:nth-child(2) {
    animation-delay: 0.2s;
}

.terminal-line:nth-child(3) {
    animation-delay: 0.3s;
}

.terminal-line:nth-child(4) {
    animation-delay: 0.4s;
}

.terminal-line:nth-child(5) {
    animation-delay: 0.5s;
}

.terminal-line:nth-child(6) {
    animation-delay: 0.6s;
}

.terminal-line:nth-child(7) {
    animation-delay: 0.7s;
}

.terminal-line:nth-child(8) {
    animation-delay: 0.8s;
}

.terminal-line:nth-child(9) {
    animation-delay: 0.9s;
}

.terminal-line:nth-child(10) {
    animation-delay: 1.0s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prompt {
    color: #00ffc8;
    margin-right: 10px;
    white-space: nowrap;
}

.terminal-text {
    color: #e0e0e0;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.highlight {
    color: #ff5555;
    font-weight: bold;
}

.warning {
    color: #ffaa00;
}

.success {
    color: #00ffc8;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* 登录表单样式 */
.login-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.form-group label i {
    margin-right: 8px;
    color: #3a3a3a;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3a3a3a;
    box-shadow: 0 0 5px rgba(40, 40, 40, 0.5);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.form-footer {
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

.form-footer p {
    margin-bottom: 8px;
}

/* 状态卡片样式 */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background-color: #111;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 25px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #3a3a3a, transparent);
}

.card:hover {
    border-color: #333;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-title {
    color: #3a3a3a;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
}

.card-content {
    color: #999;
    font-size: 0.9rem;
}

.card-content p {
    margin-bottom: 10px;
}

/* ==========================================================================
   页脚样式
   ========================================================================== */

footer {
    padding: 40px 0;
    border-top: 1px solid #222;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: 60px;
    background-color: rgba(10, 10, 10, 0.95);
}

footer p {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 15px 10px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 5px;
}

.footer-links a:hover {
    color: #00ffc8;
}

.footer-note {
    font-size: 0.7rem;
    color: #444;
    margin-top: 20px;
    font-style: italic;
}

/* ==========================================================================
   特殊元素和工具类
   ========================================================================== */

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    transition: transform 0.3s;
}

.status-critical {
    background-color: #ff5555;
    box-shadow: 0 0 10px #ff5555;
}

.status-warning {
    background-color: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
}

.status-stable {
    background-color: #00ffc8;
    box-shadow: 0 0 10px #00ffc8;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #222;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    flex: 1;
}

.btn:hover {
    background-color: #333;
    border-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background-color: rgba(0, 255, 200, 0.1);
    border-color: #00ffc8;
    color: #00ffc8;
}

.btn-success:hover {
    background-color: rgba(0, 255, 200, 0.2);
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }

    .logo-symbol {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .terminal {
        padding: 20px 15px;
    }

    .terminal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .terminal-header h2 {
        margin-bottom: 10px;
    }

    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 30px 0;
    }

    .status-cards {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .site-subtitle {
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        margin: 5px 0;
    }
}